.class public Lrexsee/natives/widget/SlidingDrawer;
.super Landroid/view/ViewGroup;
.source "SlidingDrawer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/natives/widget/SlidingDrawer$DrawerToggler;,
        Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;,
        Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;,
        Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;,
        Lrexsee/natives/widget/SlidingDrawer$SlidingHandler;
    }
.end annotation


# static fields
.field private static final ANIMATION_FRAME_DURATION:I = 0x10

.field private static final COLLAPSED_FULL_CLOSED:I = -0x2712

.field private static final EXPANDED_FULL_OPEN:I = -0x2711

.field private static final MAXIMUM_ACCELERATION:F = 2000.0f

.field private static final MAXIMUM_MAJOR_VELOCITY:F = 200.0f

.field private static final MAXIMUM_MINOR_VELOCITY:F = 150.0f

.field private static final MAXIMUM_TAP_VELOCITY:F = 100.0f

.field private static final MSG_ANIMATE:I = 0x3e8

.field public static final ORIENTATION_HORIZONTAL:I = 0x0

.field public static final ORIENTATION_VERTICAL:I = 0x1

.field private static final TAP_THRESHOLD:I = 0x6

.field private static final VELOCITY_UNITS:I = 0x3e8


# instance fields
.field private final mAllowSingleTap:Z

.field private final mAnimateOnClick:Z

.field private mAnimatedAcceleration:F

.field private mAnimatedVelocity:F

.field private mAnimating:Z

.field private mAnimationLastTime:J

.field private mAnimationPosition:F

.field private final mBottomOffset:I

.field private final mContent:Landroid/widget/FrameLayout;

.field private mCurrentAnimationTime:J

.field private mExpanded:Z

.field private final mFrame:Landroid/graphics/Rect;

.field private final mHandle:Landroid/widget/FrameLayout;

.field private mHandleHeight:I

.field private mHandleWidth:I

.field private final mHandler:Landroid/os/Handler;

.field private final mInvalidate:Landroid/graphics/Rect;

.field private mLocked:Z

.field private final mMaximumAcceleration:I

.field private final mMaximumMajorVelocity:I

.field private final mMaximumMinorVelocity:I

.field private final mMaximumTapVelocity:I

.field private mOnDrawerCloseListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;

.field private mOnDrawerOpenListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;

.field private mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

.field private final mTapThreshold:I

.field private final mTopOffset:I

.field private mTouchDelta:I

.field private mTracking:Z

.field private mVelocityTracker:Landroid/view/VelocityTracker;

.field private final mVelocityUnits:I

.field private final mVertical:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 7
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "vertical"    # Z

    .prologue
    const/4 v6, 0x0

    const/4 v3, 0x1

    const/4 v5, -0x2

    const/4 v4, 0x0

    const/high16 v2, 0x3f000000    # 0.5f

    .line 80
    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    .line 41
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    iput-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 42
    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    iput-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 56
    new-instance v1, Lrexsee/natives/widget/SlidingDrawer$SlidingHandler;

    invoke-direct {v1, p0, v6}, Lrexsee/natives/widget/SlidingDrawer$SlidingHandler;-><init>(Lrexsee/natives/widget/SlidingDrawer;Lrexsee/natives/widget/SlidingDrawer$SlidingHandler;)V

    iput-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    .line 82
    iput-boolean p2, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    .line 83
    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    .line 84
    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    .line 85
    iput-boolean v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAllowSingleTap:Z

    .line 86
    iput-boolean v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimateOnClick:Z

    .line 88
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    iget v0, v1, Landroid/util/DisplayMetrics;->density:F

    .line 89
    .local v0, "density":F
    const/high16 v1, 0x40c00000    # 6.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mTapThreshold:I

    .line 90
    const/high16 v1, 0x42c80000    # 100.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumTapVelocity:I

    .line 91
    const/high16 v1, 0x43160000    # 150.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMinorVelocity:I

    .line 92
    const/high16 v1, 0x43480000    # 200.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    .line 93
    const/high16 v1, 0x44fa0000    # 2000.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    .line 94
    const/high16 v1, 0x447a0000    # 1000.0f

    mul-float/2addr v1, v0

    add-float/2addr v1, v2

    float-to-int v1, v1

    iput v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityUnits:I

    .line 96
    invoke-virtual {p0, v4}, Lrexsee/natives/widget/SlidingDrawer;->setAlwaysDrawnWithCacheEnabled(Z)V

    .line 98
    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 99
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v5, v5}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 100
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v4}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    .line 101
    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    .line 102
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v5}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 103
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v4}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    .line 104
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v1}, Lrexsee/natives/widget/SlidingDrawer;->addView(Landroid/view/View;)V

    .line 105
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v1}, Lrexsee/natives/widget/SlidingDrawer;->addView(Landroid/view/View;)V

    .line 106
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    new-instance v2, Lrexsee/natives/widget/SlidingDrawer$DrawerToggler;

    invoke-direct {v2, p0, v6}, Lrexsee/natives/widget/SlidingDrawer$DrawerToggler;-><init>(Lrexsee/natives/widget/SlidingDrawer;Lrexsee/natives/widget/SlidingDrawer$DrawerToggler;)V

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 107
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 109
    return-void
.end method

.method static synthetic access$0(Lrexsee/natives/widget/SlidingDrawer;)Z
    .locals 1

    .prologue
    .line 44
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mLocked:Z

    return v0
.end method

.method static synthetic access$1(Lrexsee/natives/widget/SlidingDrawer;)Z
    .locals 1

    .prologue
    .line 76
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimateOnClick:Z

    return v0
.end method

.method static synthetic access$10(Lrexsee/natives/widget/SlidingDrawer;)I
    .locals 1

    .prologue
    .line 73
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    return v0
.end method

.method static synthetic access$11(Lrexsee/natives/widget/SlidingDrawer;)Z
    .locals 1

    .prologue
    .line 72
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    return v0
.end method

.method static synthetic access$12(Lrexsee/natives/widget/SlidingDrawer;Z)V
    .locals 0

    .prologue
    .line 63
    iput-boolean p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    return-void
.end method

.method static synthetic access$13(Lrexsee/natives/widget/SlidingDrawer;)V
    .locals 0

    .prologue
    .line 444
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->closeDrawer()V

    return-void
.end method

.method static synthetic access$14(Lrexsee/natives/widget/SlidingDrawer;)I
    .locals 1

    .prologue
    .line 74
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    return v0
.end method

.method static synthetic access$15(Lrexsee/natives/widget/SlidingDrawer;)V
    .locals 0

    .prologue
    .line 452
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->openDrawer()V

    return-void
.end method

.method static synthetic access$16(Lrexsee/natives/widget/SlidingDrawer;I)V
    .locals 0

    .prologue
    .line 358
    invoke-direct {p0, p1}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    return-void
.end method

.method static synthetic access$17(Lrexsee/natives/widget/SlidingDrawer;)J
    .locals 2

    .prologue
    .line 61
    iget-wide v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mCurrentAnimationTime:J

    return-wide v0
.end method

.method static synthetic access$18(Lrexsee/natives/widget/SlidingDrawer;J)V
    .locals 0

    .prologue
    .line 61
    iput-wide p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mCurrentAnimationTime:J

    return-void
.end method

.method static synthetic access$19(Lrexsee/natives/widget/SlidingDrawer;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/natives/widget/SlidingDrawer;)Z
    .locals 1

    .prologue
    .line 63
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    return v0
.end method

.method static synthetic access$3(Lrexsee/natives/widget/SlidingDrawer;)J
    .locals 2

    .prologue
    .line 60
    iget-wide v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationLastTime:J

    return-wide v0
.end method

.method static synthetic access$4(Lrexsee/natives/widget/SlidingDrawer;)F
    .locals 1

    .prologue
    .line 59
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationPosition:F

    return v0
.end method

.method static synthetic access$5(Lrexsee/natives/widget/SlidingDrawer;)F
    .locals 1

    .prologue
    .line 58
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    return v0
.end method

.method static synthetic access$6(Lrexsee/natives/widget/SlidingDrawer;)F
    .locals 1

    .prologue
    .line 57
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    return v0
.end method

.method static synthetic access$7(Lrexsee/natives/widget/SlidingDrawer;F)V
    .locals 0

    .prologue
    .line 59
    iput p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationPosition:F

    return-void
.end method

.method static synthetic access$8(Lrexsee/natives/widget/SlidingDrawer;F)V
    .locals 0

    .prologue
    .line 58
    iput p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    return-void
.end method

.method static synthetic access$9(Lrexsee/natives/widget/SlidingDrawer;J)V
    .locals 0

    .prologue
    .line 60
    iput-wide p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationLastTime:J

    return-void
.end method

.method private animateClose(I)V
    .locals 2
    .param p1, "position"    # I

    .prologue
    .line 296
    invoke-direct {p0, p1}, Lrexsee/natives/widget/SlidingDrawer;->prepareTracking(I)V

    .line 297
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    int-to-float v0, v0

    const/4 v1, 0x1

    invoke-direct {p0, p1, v0, v1}, Lrexsee/natives/widget/SlidingDrawer;->performFling(IFZ)V

    .line 298
    return-void
.end method

.method private animateOpen(I)V
    .locals 2
    .param p1, "position"    # I

    .prologue
    .line 300
    invoke-direct {p0, p1}, Lrexsee/natives/widget/SlidingDrawer;->prepareTracking(I)V

    .line 301
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    neg-int v0, v0

    int-to-float v0, v0

    const/4 v1, 0x1

    invoke-direct {p0, p1, v0, v1}, Lrexsee/natives/widget/SlidingDrawer;->performFling(IFZ)V

    .line 302
    return-void
.end method

.method private closeDrawer()V
    .locals 2

    .prologue
    .line 445
    const/16 v0, -0x2712

    invoke-direct {p0, v0}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    .line 446
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 447
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->destroyDrawingCache()V

    .line 448
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_1

    .line 451
    :cond_0
    :goto_0
    return-void

    .line 449
    :cond_1
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    .line 450
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerCloseListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerCloseListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;->onDrawerClosed()V

    goto :goto_0
.end method

.method private moveHandle(I)V
    .locals 12
    .param p1, "position"    # I

    .prologue
    const/4 v11, 0x0

    const/16 v9, -0x2711

    const/16 v8, -0x2712

    .line 359
    iget-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 360
    .local v3, "handle":Landroid/view/View;
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v7, :cond_4

    .line 361
    if-ne p1, v9, :cond_0

    .line 362
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    invoke-virtual {v3, v7}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 363
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    .line 410
    :goto_0
    return-void

    .line 364
    :cond_0
    if-ne p1, v8, :cond_1

    .line 365
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    sub-int/2addr v7, v8

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    invoke-virtual {v3, v7}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 366
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    goto :goto_0

    .line 368
    :cond_1
    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v6

    .line 369
    .local v6, "top":I
    sub-int v1, p1, v6

    .line 370
    .local v1, "deltaY":I
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    if-ge p1, v7, :cond_3

    .line 371
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v1, v7, v6

    .line 375
    :cond_2
    :goto_1
    invoke-virtual {v3, v1}, Landroid/view/View;->offsetTopAndBottom(I)V

    .line 376
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 377
    .local v2, "frame":Landroid/graphics/Rect;
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 378
    .local v5, "region":Landroid/graphics/Rect;
    invoke-virtual {v3, v2}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 379
    invoke-virtual {v5, v2}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V

    .line 380
    iget v7, v2, Landroid/graphics/Rect;->left:I

    iget v8, v2, Landroid/graphics/Rect;->top:I

    sub-int/2addr v8, v1

    iget v9, v2, Landroid/graphics/Rect;->right:I

    iget v10, v2, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v10, v1

    invoke-virtual {v5, v7, v8, v9, v10}, Landroid/graphics/Rect;->union(IIII)V

    .line 381
    iget v7, v2, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v7, v1

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getWidth()I

    move-result v8

    iget v9, v2, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v9, v1

    iget-object v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {v10}, Landroid/widget/FrameLayout;->getHeight()I

    move-result v10

    add-int/2addr v9, v10

    invoke-virtual {v5, v11, v7, v8, v9}, Landroid/graphics/Rect;->union(IIII)V

    .line 382
    invoke-virtual {p0, v5}, Lrexsee/natives/widget/SlidingDrawer;->invalidate(Landroid/graphics/Rect;)V

    goto :goto_0

    .line 372
    .end local v2    # "frame":Landroid/graphics/Rect;
    .end local v5    # "region":Landroid/graphics/Rect;
    :cond_3
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    sub-int/2addr v7, v8

    sub-int/2addr v7, v6

    if-le v1, v7, :cond_2

    .line 373
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    sub-int/2addr v7, v8

    sub-int v1, v7, v6

    goto :goto_1

    .line 385
    .end local v1    # "deltaY":I
    .end local v6    # "top":I
    :cond_4
    if-ne p1, v9, :cond_5

    .line 386
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v8

    sub-int/2addr v7, v8

    invoke-virtual {v3, v7}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 387
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    goto/16 :goto_0

    .line 388
    :cond_5
    if-ne p1, v8, :cond_6

    .line 389
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v8

    sub-int/2addr v7, v8

    .line 390
    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    sub-int/2addr v7, v8

    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v8

    sub-int/2addr v7, v8

    .line 389
    invoke-virtual {v3, v7}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 391
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    goto/16 :goto_0

    .line 393
    :cond_6
    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v4

    .line 394
    .local v4, "left":I
    sub-int v0, p1, v4

    .line 395
    .local v0, "deltaX":I
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    if-ge p1, v7, :cond_8

    .line 396
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v0, v7, v4

    .line 400
    :cond_7
    :goto_2
    invoke-virtual {v3, v0}, Landroid/view/View;->offsetLeftAndRight(I)V

    .line 401
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 402
    .restart local v2    # "frame":Landroid/graphics/Rect;
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mInvalidate:Landroid/graphics/Rect;

    .line 403
    .restart local v5    # "region":Landroid/graphics/Rect;
    invoke-virtual {v3, v2}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 404
    invoke-virtual {v5, v2}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V

    .line 405
    iget v7, v2, Landroid/graphics/Rect;->left:I

    sub-int/2addr v7, v0

    iget v8, v2, Landroid/graphics/Rect;->top:I

    iget v9, v2, Landroid/graphics/Rect;->right:I

    sub-int/2addr v9, v0

    iget v10, v2, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {v5, v7, v8, v9, v10}, Landroid/graphics/Rect;->union(IIII)V

    .line 406
    iget v7, v2, Landroid/graphics/Rect;->right:I

    sub-int/2addr v7, v0

    iget v8, v2, Landroid/graphics/Rect;->right:I

    sub-int/2addr v8, v0

    iget-object v9, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {v9}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v9

    add-int/2addr v8, v9

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getHeight()I

    move-result v9

    invoke-virtual {v5, v7, v11, v8, v9}, Landroid/graphics/Rect;->union(IIII)V

    .line 407
    invoke-virtual {p0, v5}, Lrexsee/natives/widget/SlidingDrawer;->invalidate(Landroid/graphics/Rect;)V

    goto/16 :goto_0

    .line 397
    .end local v2    # "frame":Landroid/graphics/Rect;
    .end local v5    # "region":Landroid/graphics/Rect;
    :cond_8
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    sub-int/2addr v7, v8

    sub-int/2addr v7, v4

    if-le v0, v7, :cond_7

    .line 398
    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v8

    sub-int/2addr v7, v8

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    sub-int/2addr v7, v8

    sub-int v0, v7, v4

    goto :goto_2
.end method

.method private openDrawer()V
    .locals 2

    .prologue
    .line 453
    const/16 v0, -0x2711

    invoke-direct {p0, v0}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    .line 454
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 455
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v0, :cond_1

    .line 458
    :cond_0
    :goto_0
    return-void

    .line 456
    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    .line 457
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerOpenListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerOpenListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;->onDrawerOpened()V

    goto :goto_0
.end method

.method private performFling(IFZ)V
    .locals 6
    .param p1, "position"    # I
    .param p2, "velocity"    # F
    .param p3, "always"    # Z

    .prologue
    const/16 v5, 0x3e8

    const/4 v4, 0x0

    .line 304
    int-to-float v2, p1

    iput v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationPosition:F

    .line 305
    iput p2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    .line 306
    iget-boolean v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v2, :cond_4

    .line 307
    if-nez p3, :cond_0

    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v2, v2

    cmpl-float v2, p2, v2

    if-gtz v2, :cond_0

    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    iget-boolean v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v3, :cond_2

    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    :goto_0
    add-int/2addr v2, v3

    if-le p1, v2, :cond_3

    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v2, v2

    int-to-float v2, v2

    cmpl-float v2, p2, v2

    if-lez v2, :cond_3

    .line 309
    :cond_0
    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    int-to-float v2, v2

    iput v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    .line 310
    cmpg-float v2, p2, v4

    if-gez v2, :cond_1

    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    .line 327
    :cond_1
    :goto_1
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    .line 328
    .local v0, "now":J
    iput-wide v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationLastTime:J

    .line 329
    const-wide/16 v2, 0x10

    add-long/2addr v2, v0

    iput-wide v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mCurrentAnimationTime:J

    .line 330
    const/4 v2, 0x1

    iput-boolean v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    .line 331
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v2, v5}, Landroid/os/Handler;->removeMessages(I)V

    .line 332
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    iget-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v3, v5}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v3

    iget-wide v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mCurrentAnimationTime:J

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->sendMessageAtTime(Landroid/os/Message;J)Z

    .line 333
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->stopTracking()V

    .line 334
    return-void

    .line 307
    .end local v0    # "now":J
    :cond_2
    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    goto :goto_0

    .line 313
    :cond_3
    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    neg-int v2, v2

    int-to-float v2, v2

    iput v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    .line 314
    cmpl-float v2, p2, v4

    if-lez v2, :cond_1

    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    goto :goto_1

    .line 317
    :cond_4
    if-nez p3, :cond_7

    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v2, v2

    cmpl-float v2, p2, v2

    if-gtz v2, :cond_5

    iget-boolean v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v2, :cond_6

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getHeight()I

    move-result v2

    :goto_2
    div-int/lit8 v2, v2, 0x2

    if-le p1, v2, :cond_7

    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    neg-int v2, v2

    int-to-float v2, v2

    cmpl-float v2, p2, v2

    if-lez v2, :cond_7

    .line 319
    :cond_5
    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    int-to-float v2, v2

    iput v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    .line 320
    cmpg-float v2, p2, v4

    if-gez v2, :cond_1

    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    goto :goto_1

    .line 317
    :cond_6
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getWidth()I

    move-result v2

    goto :goto_2

    .line 323
    :cond_7
    iget v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    neg-int v2, v2

    int-to-float v2, v2

    iput v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    .line 324
    cmpl-float v2, p2, v4

    if-lez v2, :cond_1

    iput v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    goto :goto_1
.end method

.method private prepareContent()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    const/high16 v8, 0x40000000    # 2.0f

    .line 412
    iget-boolean v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    if-eqz v5, :cond_0

    .line 432
    :goto_0
    return-void

    .line 414
    :cond_0
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    .line 415
    .local v2, "content":Landroid/view/View;
    invoke-virtual {v2}, Landroid/view/View;->isLayoutRequested()Z

    move-result v5

    if-eqz v5, :cond_1

    .line 416
    iget-boolean v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v5, :cond_2

    .line 417
    iget v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    .line 418
    .local v0, "childHeight":I
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v5

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v6

    sub-int/2addr v5, v6

    sub-int/2addr v5, v0

    iget v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v3, v5, v6

    .line 419
    .local v3, "height":I
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v5

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v6

    sub-int/2addr v5, v6

    invoke-static {v5, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-static {v3, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    invoke-virtual {v2, v5, v6}, Landroid/view/View;->measure(II)V

    .line 420
    iget v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v5, v0

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v6

    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v7, v0

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {v2, v9, v5, v6, v7}, Landroid/view/View;->layout(IIII)V

    .line 429
    .end local v0    # "childHeight":I
    .end local v3    # "height":I
    :cond_1
    :goto_1
    invoke-virtual {v2}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/ViewTreeObserver;->dispatchOnPreDraw()Z

    .line 430
    invoke-virtual {v2}, Landroid/view/View;->buildDrawingCache()V

    .line 431
    const/16 v5, 0x8

    invoke-virtual {v2, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 422
    :cond_2
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v1

    .line 423
    .local v1, "childWidth":I
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v5

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v6

    sub-int/2addr v5, v6

    sub-int/2addr v5, v1

    iget v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v4, v5, v6

    .line 424
    .local v4, "width":I
    invoke-static {v4, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v6

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v7

    sub-int/2addr v6, v7

    invoke-static {v6, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    invoke-virtual {v2, v5, v6}, Landroid/view/View;->measure(II)V

    .line 425
    iget v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v5, v1

    iget v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v6, v1

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    invoke-virtual {v2, v5, v9, v6, v7}, Landroid/view/View;->layout(IIII)V

    goto :goto_1
.end method

.method private prepareTracking(I)V
    .locals 8
    .param p1, "position"    # I

    .prologue
    const/16 v7, 0x3e8

    const/4 v4, 0x0

    const/4 v6, 0x1

    .line 336
    iput-boolean v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    .line 337
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v3

    iput-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 338
    iget-boolean v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v3, :cond_0

    move v2, v4

    .line 339
    .local v2, "opening":Z
    :goto_0
    if-eqz v2, :cond_2

    .line 340
    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumAcceleration:I

    int-to-float v3, v3

    iput v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedAcceleration:F

    .line 341
    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMajorVelocity:I

    int-to-float v3, v3

    iput v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimatedVelocity:F

    .line 342
    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    iget-boolean v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v4, :cond_1

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getHeight()I

    move-result v4

    iget v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    sub-int/2addr v4, v5

    :goto_1
    add-int/2addr v3, v4

    int-to-float v3, v3

    iput v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationPosition:F

    .line 343
    iget v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationPosition:F

    float-to-int v3, v3

    invoke-direct {p0, v3}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    .line 344
    iput-boolean v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    .line 345
    iget-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v3, v7}, Landroid/os/Handler;->removeMessages(I)V

    .line 346
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    .line 347
    .local v0, "now":J
    iput-wide v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimationLastTime:J

    .line 348
    const-wide/16 v3, 0x10

    add-long/2addr v3, v0

    iput-wide v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mCurrentAnimationTime:J

    .line 349
    iput-boolean v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    .line 357
    .end local v0    # "now":J
    :goto_2
    return-void

    .end local v2    # "opening":Z
    :cond_0
    move v2, v6

    .line 338
    goto :goto_0

    .line 342
    .restart local v2    # "opening":Z
    :cond_1
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getWidth()I

    move-result v4

    iget v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    sub-int/2addr v4, v5

    goto :goto_1

    .line 351
    :cond_2
    iget-boolean v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    if-eqz v3, :cond_3

    .line 352
    iput-boolean v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    .line 353
    iget-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandler:Landroid/os/Handler;

    invoke-virtual {v3, v7}, Landroid/os/Handler;->removeMessages(I)V

    .line 355
    :cond_3
    invoke-direct {p0, p1}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    goto :goto_2
.end method

.method private stopTracking()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 434
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setPressed(Z)V

    .line 435
    iput-boolean v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    .line 436
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    if-eqz v0, :cond_0

    .line 437
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 439
    :cond_0
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_1

    .line 440
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    .line 441
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 443
    :cond_1
    return-void
.end method


# virtual methods
.method public animateClose()V
    .locals 2

    .prologue
    .line 488
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->prepareContent()V

    .line 489
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    .line 490
    .local v0, "scrollListener":Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;
    if-eqz v0, :cond_0

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 491
    :cond_0
    iget-boolean v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v1, :cond_2

    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getTop()I

    move-result v1

    :goto_0
    invoke-direct {p0, v1}, Lrexsee/natives/widget/SlidingDrawer;->animateClose(I)V

    .line 492
    if-eqz v0, :cond_1

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 493
    :cond_1
    return-void

    .line 491
    :cond_2
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLeft()I

    move-result v1

    goto :goto_0
.end method

.method public animateOpen()V
    .locals 2

    .prologue
    .line 495
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->prepareContent()V

    .line 496
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    .line 497
    .local v0, "scrollListener":Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;
    if-eqz v0, :cond_0

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 498
    :cond_0
    iget-boolean v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v1, :cond_2

    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getTop()I

    move-result v1

    :goto_0
    invoke-direct {p0, v1}, Lrexsee/natives/widget/SlidingDrawer;->animateOpen(I)V

    .line 499
    const/16 v1, 0x20

    invoke-virtual {p0, v1}, Lrexsee/natives/widget/SlidingDrawer;->sendAccessibilityEvent(I)V

    .line 500
    if-eqz v0, :cond_1

    invoke-interface {v0}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollEnded()V

    .line 501
    :cond_1
    return-void

    .line 498
    :cond_2
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLeft()I

    move-result v1

    goto :goto_0
.end method

.method public animateToggle()V
    .locals 1

    .prologue
    .line 470
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_0

    .line 471
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->animateOpen()V

    .line 475
    :goto_0
    return-void

    .line 473
    :cond_0
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->animateClose()V

    goto :goto_0
.end method

.method public close()V
    .locals 0

    .prologue
    .line 483
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->closeDrawer()V

    .line 484
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    .line 485
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->requestLayout()V

    .line 486
    return-void
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .locals 9
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x0

    const/4 v6, 0x0

    .line 131
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getDrawingTime()J

    move-result-wide v1

    .line 132
    .local v1, "drawingTime":J
    iget-object v3, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 133
    .local v3, "handle":Landroid/view/View;
    iget-boolean v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    .line 134
    .local v4, "isVertical":Z
    invoke-virtual {p0, p1, v3, v1, v2}, Lrexsee/natives/widget/SlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 135
    iget-boolean v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-nez v5, :cond_0

    iget-boolean v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    if-eqz v5, :cond_6

    .line 136
    :cond_0
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {v5}, Landroid/widget/FrameLayout;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v0

    .line 137
    .local v0, "cache":Landroid/graphics/Bitmap;
    if-eqz v0, :cond_3

    .line 138
    if-eqz v4, :cond_2

    .line 139
    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v5

    int-to-float v5, v5

    invoke-virtual {p1, v0, v6, v5, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 152
    .end local v0    # "cache":Landroid/graphics/Bitmap;
    :cond_1
    :goto_0
    return-void

    .line 141
    .restart local v0    # "cache":Landroid/graphics/Bitmap;
    :cond_2
    invoke-virtual {v3}, Landroid/view/View;->getRight()I

    move-result v5

    int-to-float v5, v5

    invoke-virtual {p1, v0, v5, v6, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_0

    .line 144
    :cond_3
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 145
    if-eqz v4, :cond_4

    move v5, v7

    :goto_1
    int-to-float v5, v5

    if-eqz v4, :cond_5

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v6

    iget v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int/2addr v6, v7

    :goto_2
    int-to-float v6, v6

    invoke-virtual {p1, v5, v6}, Landroid/graphics/Canvas;->translate(FF)V

    .line 146
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {p0, p1, v5, v1, v2}, Lrexsee/natives/widget/SlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    .line 147
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    goto :goto_0

    .line 145
    :cond_4
    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v5

    iget v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int/2addr v5, v6

    goto :goto_1

    :cond_5
    move v6, v7

    goto :goto_2

    .line 149
    .end local v0    # "cache":Landroid/graphics/Bitmap;
    :cond_6
    iget-boolean v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v5, :cond_1

    .line 150
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-virtual {p0, p1, v5, v1, v2}, Lrexsee/natives/widget/SlidingDrawer;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    goto :goto_0
.end method

.method public getContent()Landroid/widget/FrameLayout;
    .locals 1

    .prologue
    .line 515
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    return-object v0
.end method

.method public getHandle()Landroid/widget/FrameLayout;
    .locals 1

    .prologue
    .line 512
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    return-object v0
.end method

.method public isMoving()Z
    .locals 1

    .prologue
    .line 527
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public isOpened()Z
    .locals 1

    .prologue
    .line 524
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    return v0
.end method

.method public lock()V
    .locals 1

    .prologue
    .line 521
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mLocked:Z

    .line 522
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 11
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v10, 0x0

    const/4 v9, 0x1

    .line 179
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mLocked:Z

    if-eqz v7, :cond_0

    move v7, v10

    .line 207
    :goto_0
    return v7

    .line 180
    :cond_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 181
    .local v0, "action":I
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v5

    .line 182
    .local v5, "x":F
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v6

    .line 183
    .local v6, "y":F
    iget-object v1, p0, Lrexsee/natives/widget/SlidingDrawer;->mFrame:Landroid/graphics/Rect;

    .line 184
    .local v1, "frame":Landroid/graphics/Rect;
    iget-object v2, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 185
    .local v2, "handle":Landroid/view/View;
    invoke-virtual {v2, v1}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 186
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-nez v7, :cond_1

    float-to-int v7, v5

    float-to-int v8, v6

    invoke-virtual {v1, v7, v8}, Landroid/graphics/Rect;->contains(II)Z

    move-result v7

    if-nez v7, :cond_1

    move v7, v10

    goto :goto_0

    .line 187
    :cond_1
    if-nez v0, :cond_3

    .line 188
    iput-boolean v9, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    .line 189
    invoke-virtual {v2, v9}, Landroid/view/View;->setPressed(Z)V

    .line 191
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->prepareContent()V

    .line 193
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    if-eqz v7, :cond_2

    .line 194
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    invoke-interface {v7}, Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;->onScrollStarted()V

    .line 196
    :cond_2
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v7, :cond_4

    .line 197
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v7}, Landroid/widget/FrameLayout;->getTop()I

    move-result v4

    .line 198
    .local v4, "top":I
    float-to-int v7, v6

    sub-int/2addr v7, v4

    iput v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTouchDelta:I

    .line 199
    invoke-direct {p0, v4}, Lrexsee/natives/widget/SlidingDrawer;->prepareTracking(I)V

    .line 205
    .end local v4    # "top":I
    :goto_1
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v7, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    :cond_3
    move v7, v9

    .line 207
    goto :goto_0

    .line 201
    :cond_4
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v7}, Landroid/widget/FrameLayout;->getLeft()I

    move-result v3

    .line 202
    .local v3, "left":I
    float-to-int v7, v5

    sub-int/2addr v7, v3

    iput v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mTouchDelta:I

    .line 203
    invoke-direct {p0, v3}, Lrexsee/natives/widget/SlidingDrawer;->prepareTracking(I)V

    goto :goto_1
.end method

.method protected onLayout(ZIIII)V
    .locals 13
    .param p1, "changed"    # Z
    .param p2, "l"    # I
    .param p3, "t"    # I
    .param p4, "r"    # I
    .param p5, "b"    # I

    .prologue
    .line 155
    iget-boolean v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-eqz v8, :cond_0

    .line 176
    :goto_0
    return-void

    .line 156
    :cond_0
    sub-int v7, p4, p2

    .line 157
    .local v7, "width":I
    sub-int v6, p5, p3

    .line 158
    .local v6, "height":I
    iget-object v5, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 159
    .local v5, "handle":Landroid/view/View;
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    .line 160
    .local v3, "childWidth":I
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    .line 163
    .local v0, "childHeight":I
    iget-object v4, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    .line 164
    .local v4, "content":Landroid/view/View;
    iget-boolean v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v8, :cond_2

    .line 165
    sub-int v8, v7, v3

    div-int/lit8 v1, v8, 0x2

    .line 166
    .local v1, "childLeft":I
    iget-boolean v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_1

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    move v2, v8

    .line 167
    .local v2, "childTop":I
    :goto_1
    const/4 v8, 0x0

    iget v9, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v9, v0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v10

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v11, v0

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v12

    add-int/2addr v11, v12

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    .line 173
    :goto_2
    add-int v8, v1, v3

    add-int v9, v2, v0

    invoke-virtual {v5, v1, v2, v8, v9}, Landroid/view/View;->layout(IIII)V

    .line 174
    invoke-virtual {v5}, Landroid/view/View;->getHeight()I

    move-result v8

    iput v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    .line 175
    invoke-virtual {v5}, Landroid/view/View;->getWidth()I

    move-result v8

    iput v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    goto :goto_0

    .line 166
    .end local v2    # "childTop":I
    :cond_1
    sub-int v8, v6, v0

    iget v9, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    add-int/2addr v8, v9

    move v2, v8

    goto :goto_1

    .line 169
    .end local v1    # "childLeft":I
    :cond_2
    iget-boolean v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v8, :cond_3

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    move v1, v8

    .line 170
    .restart local v1    # "childLeft":I
    :goto_3
    sub-int v8, v6, v0

    div-int/lit8 v2, v8, 0x2

    .line 171
    .restart local v2    # "childTop":I
    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v8, v3

    const/4 v9, 0x0

    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v10, v3

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v11

    add-int/2addr v10, v11

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v11

    invoke-virtual {v4, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V

    goto :goto_2

    .line 169
    .end local v1    # "childLeft":I
    .end local v2    # "childTop":I
    :cond_3
    sub-int v8, v7, v3

    iget v9, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    add-int/2addr v8, v9

    move v1, v8

    goto :goto_3
.end method

.method protected onMeasure(II)V
    .locals 10
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    const/high16 v9, 0x40000000    # 2.0f

    .line 113
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v5

    .line 114
    .local v5, "widthSpecMode":I
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v6

    .line 115
    .local v6, "widthSpecSize":I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v2

    .line 116
    .local v2, "heightSpecMode":I
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v3

    .line 117
    .local v3, "heightSpecSize":I
    if-eqz v5, :cond_0

    if-nez v2, :cond_1

    :cond_0
    new-instance v7, Ljava/lang/RuntimeException;

    const-string v8, "SlidingDrawer cannot have UNSPECIFIED dimensions"

    invoke-direct {v7, v8}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v7

    .line 118
    :cond_1
    iget-object v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    .line 119
    .local v0, "handle":Landroid/view/View;
    invoke-virtual {p0, v0, p1, p2}, Lrexsee/natives/widget/SlidingDrawer;->measureChild(Landroid/view/View;II)V

    .line 120
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v7, :cond_2

    .line 121
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v7

    sub-int v7, v3, v7

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v1, v7, v8

    .line 122
    .local v1, "height":I
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-static {v6, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v8

    invoke-static {v1, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v9

    invoke-virtual {v7, v8, v9}, Landroid/widget/FrameLayout;->measure(II)V

    .line 127
    .end local v1    # "height":I
    :goto_0
    invoke-virtual {p0, v6, v3}, Lrexsee/natives/widget/SlidingDrawer;->setMeasuredDimension(II)V

    .line 128
    return-void

    .line 124
    :cond_2
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    sub-int v7, v6, v7

    iget v8, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    sub-int v4, v7, v8

    .line 125
    .local v4, "width":I
    iget-object v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mContent:Landroid/widget/FrameLayout;

    invoke-static {v4, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v8

    invoke-static {v3, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v9

    invoke-virtual {v7, v8, v9}, Landroid/widget/FrameLayout;->measure(II)V

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 14
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 211
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mLocked:Z

    if-eqz v10, :cond_0

    const/4 v10, 0x1

    .line 292
    :goto_0
    return v10

    .line 213
    :cond_0
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-eqz v10, :cond_1

    .line 214
    iget-object v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    invoke-virtual {v10, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 215
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 216
    .local v0, "action":I
    packed-switch v0, :pswitch_data_0

    .line 292
    .end local v0    # "action":I
    :cond_1
    :goto_1
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mTracking:Z

    if-nez v10, :cond_17

    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mAnimating:Z

    if-nez v10, :cond_17

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v10

    if-nez v10, :cond_17

    const/4 v10, 0x0

    goto :goto_0

    .line 218
    .restart local v0    # "action":I
    :pswitch_0
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    if-eqz v10, :cond_2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v10

    :goto_2
    float-to-int v10, v10

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTouchDelta:I

    sub-int/2addr v10, v11

    invoke-direct {p0, v10}, Lrexsee/natives/widget/SlidingDrawer;->moveHandle(I)V

    goto :goto_1

    :cond_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v10

    goto :goto_2

    .line 223
    :pswitch_1
    :try_start_0
    iget-object v6, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityTracker:Landroid/view/VelocityTracker;

    .line 224
    .local v6, "velocityTracker":Landroid/view/VelocityTracker;
    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mVelocityUnits:I

    invoke-virtual {v6, v10}, Landroid/view/VelocityTracker;->computeCurrentVelocity(I)V

    .line 226
    invoke-virtual {v6}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v9

    .line 227
    .local v9, "yVelocity":F
    invoke-virtual {v6}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v8

    .line 230
    .local v8, "xVelocity":F
    iget-boolean v7, p0, Lrexsee/natives/widget/SlidingDrawer;->mVertical:Z

    .line 231
    .local v7, "vertical":Z
    if-eqz v7, :cond_9

    .line 232
    const/4 v10, 0x0

    cmpg-float v10, v9, v10

    if-gez v10, :cond_8

    const/4 v10, 0x1

    move v3, v10

    .line 233
    .local v3, "negative":Z
    :goto_3
    const/4 v10, 0x0

    cmpg-float v10, v8, v10

    if-gez v10, :cond_3

    .line 234
    neg-float v8, v8

    .line 236
    :cond_3
    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v10, v10

    cmpl-float v10, v8, v10

    if-lez v10, :cond_4

    .line 237
    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v8, v10

    .line 249
    :cond_4
    :goto_4
    float-to-double v10, v8

    float-to-double v12, v9

    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->hypot(DD)D

    move-result-wide v10

    double-to-float v5, v10

    .line 250
    .local v5, "velocity":F
    if-eqz v3, :cond_5

    .line 251
    neg-float v5, v5

    .line 254
    :cond_5
    iget-object v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v10}, Landroid/widget/FrameLayout;->getTop()I

    move-result v4

    .line 255
    .local v4, "top":I
    iget-object v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandle:Landroid/widget/FrameLayout;

    invoke-virtual {v10}, Landroid/widget/FrameLayout;->getLeft()I

    move-result v2

    .line 257
    .local v2, "left":I
    invoke-static {v5}, Ljava/lang/Math;->abs(F)F

    move-result v10

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumTapVelocity:I

    int-to-float v11, v11

    cmpg-float v10, v10, v11

    if-gez v10, :cond_15

    .line 258
    if-eqz v7, :cond_c

    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v10, :cond_6

    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mTapThreshold:I

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v10, v11

    if-lt v4, v10, :cond_7

    .line 259
    :cond_6
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-nez v10, :cond_e

    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getBottom()I

    move-result v11

    add-int/2addr v10, v11

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getTop()I

    move-result v11

    sub-int/2addr v10, v11

    .line 260
    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleHeight:I

    sub-int/2addr v10, v11

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTapThreshold:I

    sub-int/2addr v10, v11

    if-le v4, v10, :cond_e

    .line 265
    :cond_7
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mAllowSingleTap:Z

    if-eqz v10, :cond_12

    .line 266
    const/4 v10, 0x0

    invoke-virtual {p0, v10}, Lrexsee/natives/widget/SlidingDrawer;->playSoundEffect(I)V

    .line 268
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v10, :cond_10

    .line 269
    if-eqz v7, :cond_f

    move v10, v4

    :goto_5
    invoke-direct {p0, v10}, Lrexsee/natives/widget/SlidingDrawer;->animateClose(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    .line 283
    .end local v2    # "left":I
    .end local v3    # "negative":Z
    .end local v4    # "top":I
    .end local v5    # "velocity":F
    .end local v6    # "velocityTracker":Landroid/view/VelocityTracker;
    .end local v7    # "vertical":Z
    .end local v8    # "xVelocity":F
    .end local v9    # "yVelocity":F
    :catch_0
    move-exception v10

    move-object v1, v10

    .line 284
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getContext()Landroid/content/Context;

    move-result-object v10

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v12, ":"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v1}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x1

    invoke-static {v10, v11, v12}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v10

    invoke-virtual {v10}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    .line 232
    .end local v1    # "e":Ljava/lang/Exception;
    .restart local v6    # "velocityTracker":Landroid/view/VelocityTracker;
    .restart local v7    # "vertical":Z
    .restart local v8    # "xVelocity":F
    .restart local v9    # "yVelocity":F
    :cond_8
    const/4 v10, 0x0

    move v3, v10

    goto/16 :goto_3

    .line 240
    :cond_9
    const/4 v10, 0x0

    cmpg-float v10, v8, v10

    if-gez v10, :cond_b

    const/4 v10, 0x1

    move v3, v10

    .line 241
    .restart local v3    # "negative":Z
    :goto_6
    const/4 v10, 0x0

    cmpg-float v10, v9, v10

    if-gez v10, :cond_a

    .line 242
    neg-float v9, v9

    .line 244
    :cond_a
    :try_start_1
    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v10, v10

    cmpl-float v10, v9, v10

    if-lez v10, :cond_4

    .line 245
    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mMaximumMinorVelocity:I

    int-to-float v9, v10

    goto/16 :goto_4

    .line 240
    .end local v3    # "negative":Z
    :cond_b
    const/4 v10, 0x0

    move v3, v10

    goto :goto_6

    .line 261
    .restart local v2    # "left":I
    .restart local v3    # "negative":Z
    .restart local v4    # "top":I
    .restart local v5    # "velocity":F
    :cond_c
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-eqz v10, :cond_d

    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mTapThreshold:I

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTopOffset:I

    add-int/2addr v10, v11

    if-lt v2, v10, :cond_7

    .line 262
    :cond_d
    iget-boolean v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-nez v10, :cond_e

    iget v10, p0, Lrexsee/natives/widget/SlidingDrawer;->mBottomOffset:I

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getRight()I

    move-result v11

    add-int/2addr v10, v11

    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->getLeft()I

    move-result v11

    sub-int/2addr v10, v11

    .line 263
    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mHandleWidth:I

    sub-int/2addr v10, v11

    iget v11, p0, Lrexsee/natives/widget/SlidingDrawer;->mTapThreshold:I

    sub-int/2addr v10, v11

    if-gt v2, v10, :cond_7

    .line 278
    :cond_e
    if-eqz v7, :cond_14

    move v10, v4

    :goto_7
    const/4 v11, 0x0

    invoke-direct {p0, v10, v5, v11}, Lrexsee/natives/widget/SlidingDrawer;->performFling(IFZ)V

    goto/16 :goto_1

    :cond_f
    move v10, v2

    .line 269
    goto/16 :goto_5

    .line 271
    :cond_10
    if-eqz v7, :cond_11

    move v10, v4

    :goto_8
    invoke-direct {p0, v10}, Lrexsee/natives/widget/SlidingDrawer;->animateOpen(I)V

    goto/16 :goto_1

    :cond_11
    move v10, v2

    goto :goto_8

    .line 274
    :cond_12
    if-eqz v7, :cond_13

    move v10, v4

    :goto_9
    const/4 v11, 0x0

    invoke-direct {p0, v10, v5, v11}, Lrexsee/natives/widget/SlidingDrawer;->performFling(IFZ)V

    goto/16 :goto_1

    :cond_13
    move v10, v2

    goto :goto_9

    :cond_14
    move v10, v2

    .line 278
    goto :goto_7

    .line 281
    :cond_15
    if-eqz v7, :cond_16

    move v10, v4

    :goto_a
    const/4 v11, 0x0

    invoke-direct {p0, v10, v5, v11}, Lrexsee/natives/widget/SlidingDrawer;->performFling(IFZ)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1

    :cond_16
    move v10, v2

    goto :goto_a

    .line 292
    .end local v0    # "action":I
    .end local v2    # "left":I
    .end local v3    # "negative":Z
    .end local v4    # "top":I
    .end local v5    # "velocity":F
    .end local v6    # "velocityTracker":Landroid/view/VelocityTracker;
    .end local v7    # "vertical":Z
    .end local v8    # "xVelocity":F
    .end local v9    # "yVelocity":F
    :cond_17
    const/4 v10, 0x1

    goto/16 :goto_0

    .line 216
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public open()V
    .locals 1

    .prologue
    .line 477
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->openDrawer()V

    .line 478
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    .line 479
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->requestLayout()V

    .line 480
    const/16 v0, 0x20

    invoke-virtual {p0, v0}, Lrexsee/natives/widget/SlidingDrawer;->sendAccessibilityEvent(I)V

    .line 481
    return-void
.end method

.method public setOnDrawerCloseListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;)V
    .locals 0
    .param p1, "onDrawerCloseListener"    # Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;

    .prologue
    .line 506
    iput-object p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerCloseListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerCloseListener;

    .line 507
    return-void
.end method

.method public setOnDrawerOpenListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;)V
    .locals 0
    .param p1, "onDrawerOpenListener"    # Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;

    .prologue
    .line 503
    iput-object p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerOpenListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerOpenListener;

    .line 504
    return-void
.end method

.method public setOnDrawerScrollListener(Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;)V
    .locals 0
    .param p1, "onDrawerScrollListener"    # Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    .prologue
    .line 509
    iput-object p1, p0, Lrexsee/natives/widget/SlidingDrawer;->mOnDrawerScrollListener:Lrexsee/natives/widget/SlidingDrawer$OnDrawerScrollListener;

    .line 510
    return-void
.end method

.method public toggle()V
    .locals 1

    .prologue
    .line 461
    iget-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mExpanded:Z

    if-nez v0, :cond_0

    .line 462
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->openDrawer()V

    .line 466
    :goto_0
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->invalidate()V

    .line 467
    invoke-virtual {p0}, Lrexsee/natives/widget/SlidingDrawer;->requestLayout()V

    .line 468
    return-void

    .line 464
    :cond_0
    invoke-direct {p0}, Lrexsee/natives/widget/SlidingDrawer;->closeDrawer()V

    goto :goto_0
.end method

.method public unlock()V
    .locals 1

    .prologue
    .line 518
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/natives/widget/SlidingDrawer;->mLocked:Z

    .line 519
    return-void
.end method
